package com.iwhalecloud.bss.kite.cucc.service.attr.handler;

import com.iwhalecloud.bss.kite.cucc.common.constant.LocalKeyConsts;
import com.iwhalecloud.bss.kite.manager.inst.KiteAttr;
import com.iwhalecloud.bss.kite.manager.inst.KiteInst;
import com.iwhalecloud.bss.kite.service.attr.AttrData;
import com.iwhalecloud.bss.kite.service.attr.handler.AbstractAttrHandler;
import com.ztesoft.bss.common.util.ContextUtil;

/**
 * Description:主备冗余附加项处理类
 * File Name:AdditionalItemsAttrHandler
 * Modification History:
 * Date             Author      Version     Description
 * ------------------------------------------------------------------
 * 2021-7-14 16:13   邱萌         1.0       1.0 Version
 **/
public class AdditionalItemsAttrHandler extends AbstractAttrHandler {
    @Override
    public void after(KiteAttr attr, KiteInst inst, AttrData data) {
        // 上海 主备冗余附加项展示
        String provinceCode = ContextUtil.getLoginInfo().getUserInfo().getPostProvinceNbr();
        if (LocalKeyConsts.PROVINCE_SHANGHAI.equals(provinceCode)) {
            attr.setShowType("D");
        }
        super.after(attr, inst, data);
    }
}
